//
//  QUTableView.h
//  FaceCard
//
//  Created by 瞿伦平 on 2017/6/23.
//  Copyright © 2017年 瞿伦平. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MJRefresh.h"
#import "UIScrollView+EmptyDataSet.h"
#import "APIClient.h"
#import "UIView+AutoSize.h"

#define QUTableCustomView_Height 100
@interface QUTableCustomView : UIView
@property(nonatomic,strong) UILabel *msgLable;
@property(nonatomic,strong) UILabel *desLable;
@end




typedef void (^QURefreshComponentRefreshingBlock)(int page);


@interface QUTableView : UITableView<DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>

@property(nonatomic,assign) int                 startId;  //页码数
@property(nonatomic,assign) int                 pageRow;  //每页数量
@property(nonatomic,assign) BOOL				tableIsReloading; //是否正在加载
@property(nonatomic,strong) NSString            *errMsg;//错误信息输出

//@property (copy, nonatomic) NSString *(^footerRefreshingBlockErrorMsg)(int page);

///** 头部正在刷新的回调 */
//@property (copy, nonatomic) MJRefreshComponentRefreshingBlock headerRefreshingBlock;
//
///** 底部正在刷新的回调 */
//@property (copy, nonatomic) MJRefreshComponentRefreshingBlock footerRefreshingBlock;

/** 正在刷新的回调 */
@property (copy, nonatomic) QURefreshComponentRefreshingBlock refreshingBlock;

-(void)setHaveHeader;
-(void)setHaveFooter;
-(void)setHaveHeaderFooter;

-(void)beginHeaderRereshing;
- (void)doneLoadingTableViewDataWithTableArr:(NSMutableArray *)tableArr addArr:(NSArray *)arr info:(APIObject*)info;

@end
